package cn.yangliu.jwt.entity;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author 杨柳
 * @contact QQ: 574789490
 * @date 2019-04-18 10:40
 * @desp 
 */
@Accessors(chain = true)
@ApiModel
@Entity
@EqualsAndHashCode(callSuper = false)
@Getter
@NoArgsConstructor
@Setter
@Table(name = "role")
@ToString
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;



    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty()
    private Long id;

    @Column(name = "role_name")
    @ApiModelProperty()
    private String roleName;

    @Column(name = "create_time")
    @ApiModelProperty()
    private LocalDateTime createTime;



}
